<jsp:include page="/header.jsp"></jsp:include>

	<%@ page session="true" import="java.util.ResourceBundle,java.util.Locale" %>
	<%
		Locale local = (Locale) session.getAttribute("local");
		if (local == null){
			local = new Locale("pt","BR");
		}
		ResourceBundle bundle = ResourceBundle.getBundle("rotulos",local);
	%>
	
	<div align="right">
		<a href="/Livraria/livraria?locale=pt_BR"><input type="image" src="images/flag_pt-BR.png"/></a>
		<a href="/Livraria/livraria?locale=en_US"><input type="image" src="images/flag_en-US.png"/></a>
	</div>
	<div style="background:#fafafa" align="center">
		
		<h3>LOGIN</h3>
			
		<form  method="POST" action="/Livraria/livraria">
			<%= bundle.getString("usuario") %>: <input type="text" name="prontuario" /><br/><br/>
			<%= bundle.getString("senha") %>:  <input type="text" name="senha" /><br/><br/>
			<%= session.getAttribute("erro") %>
			
			<input style="width:100;height:25"  type="submit" value="Login" />
			<a href="alterar-senha.jsp">Alterar Senha</a>
			<input size="3" type="hidden" name="corrente" value="0">
		</form>
	</div>
	
</body>
</html>
